Repository navigation
test(insurance): drive the recommendation comparison through the real Archera client - #1064
Conversation
… Archera client Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
Independent review verdict: BLOCKING at 2f6dc2c (lint only; the test itself is sound)Reviewer: fresh Claude agent (Sonnet 5.5, high effort), not the author. Coordinator: claude-cc-reviewer. Blocking (gate): golangci-lint v2.10.1 with What was verified:
Non-blocking: the fake vendor never asserts Next: fix the spelling in a new commit. Merge after #1058, #1063 and #1061 merge and this PR's full CI is green. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… item on demand (#1070) Adds an explicit read-only row action that fetches GET /api/insurance/comparison?recommendation_id=<id> and renders native vendor figures as text, with fixed messages per error status. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
80122aa
into
feat/799-archera-recommendation-route
…ine item (#1061) * feat(insurance): compare one stored recommendation with its Archera line item Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(insurance): drive the recommendation comparison through the real Archera client (#1064) * test(insurance): drive the recommendation comparison through the real Archera client Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(insurance): fix spelling flagged by misspell Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(recommendations): compare a recommendation with its Archera line item on demand (#1070) Adds an explicit read-only row action that fetches GET /api/insurance/comparison?recommendation_id=<id> and renders native vendor figures as text, with fixed messages per error status. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
What
A contract test that drives Router GET
/api/insurance/comparison?recommendation_id=...through the realarchera.Providerand realinsurance.Clientover an interceptedhttp.RoundTripper, down to the decoded recommendation DTO.Why
The earlier PRs in the stack test the handler with a fake client. This is the only test that exercises the real paginator, URL building, header and query encoding on the production read path.
Asserts
x-api-keyheader, LineItems pagination (the matching item is on page 2).line_item_idsequals the selected ID andpayment_optionsis all three (read as multisets).Evidence
Synthetic vendor transport through the actual production read path, shaped after the Archera Public OpenAPI (including the
X-Paginationheader). It is not a live Archera org. Mutation probes (scratch, reverted) each failed a named assertion in this file: dropping the post-fetch reread, swallowing the LineItems error, droppingpayment_options.GOWORK=off go test -race ./internal/api/ -run Insurance,go vet ./...and gofmt are clean.Refs #799
Stack: this PR targets
feat/799-archera-recommendation-route(#1061), which stacks on #1063, #1058, #1056 and #1054.🤖 Generated with Claude Code